package com.skit.common.http

sealed class NetResult<T> {
    data class Error<T>(val code: Int, val msg: String?) : NetResult<T>() {
        companion object {
            const val NET_ERROR = 0
            const val PARAM_ERROR = 1
        }
    }

    open class Success<T>(open val data: T? = null, open val msg: String? = null) : NetResult<T>()

    data class DataSuccess<T>(override val data: T) : Success<T>(data)

    data class NoDataSuccess<T>(override val msg: String) : Success<T>(msg = msg)
}